<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>st-theme</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="St Reference Manual">
<link rel="up" href="styling.html" title="Styling">
<link rel="prev" href="styling.html" title="Styling">
<link rel="next" href="st-st-theme-context.html" title="st-theme-context">
<meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="styling.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="styling.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">St Reference Manual</th>
<td><a accesskey="n" href="st-st-theme-context.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#st-st-theme.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#st-st-theme.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="st-st-theme"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="st-st-theme.top_of_page"></a>st-theme</span></h2>
<p>st-theme — a set of stylesheets</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="st-st-theme.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">                    <a class="link" href="st-st-theme.html#StThemeClass" title="StThemeClass">StThemeClass</a>;
<span class="returnvalue">GSList</span> *            <a class="link" href="st-st-theme.html#st-theme-get-custom-stylesheets" title="st_theme_get_custom_stylesheets ()">st_theme_get_custom_stylesheets</a>     (<em class="parameter"><code><a class="link" href="st-st-theme-node.html#StTheme"><span class="type">StTheme</span></a> *theme</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="st-st-theme.html#st-theme-load-stylesheet" title="st_theme_load_stylesheet ()">st_theme_load_stylesheet</a>            (<em class="parameter"><code><a class="link" href="st-st-theme-node.html#StTheme"><span class="type">StTheme</span></a> *theme</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *path</code></em>,
                                                         <em class="parameter"><code><span class="type">GError</span> **error</code></em>);
<a class="link" href="st-st-theme-node.html#StTheme"><span class="returnvalue">StTheme</span></a> *           <a class="link" href="st-st-theme.html#st-theme-new" title="st_theme_new ()">st_theme_new</a>                        (<em class="parameter"><code>const <span class="type">char</span> *application_stylesheet</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *theme_stylesheet</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *default_stylesheet</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="st-st-theme.html#st-theme-unload-stylesheet" title="st_theme_unload_stylesheet ()">st_theme_unload_stylesheet</a>          (<em class="parameter"><code><a class="link" href="st-st-theme-node.html#StTheme"><span class="type">StTheme</span></a> *theme</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *path</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="st-st-theme.description"></a><h2>Description</h2>
<p>
<a class="link" href="st-st-theme-node.html#StTheme"><span class="type">StTheme</span></a> holds a set of stylesheets. (The "cascade" of the name
Cascading Stylesheets.) A <a class="link" href="st-st-theme-node.html#StTheme"><span class="type">StTheme</span></a> can be set to apply to all the actors
in a stage using <a class="link" href="st-st-theme-context.html#st-theme-context-set-theme" title="st_theme_context_set_theme ()"><code class="function">st_theme_context_set_theme()</code></a> or applied to a subtree
of actors using <a class="link" href="StWidget.html#st-widget-set-theme" title="st_widget_set_theme ()"><code class="function">st_widget_set_theme()</code></a>.
</p>
</div>
<div class="refsect1">
<a name="st-st-theme.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="StThemeClass"></a><h3>StThemeClass</h3>
<pre class="programlisting">typedef struct _StThemeClass StThemeClass;</pre>
</div>
<hr>
<div class="refsect2">
<a name="st-theme-get-custom-stylesheets"></a><h3>st_theme_get_custom_stylesheets ()</h3>
<pre class="programlisting"><span class="returnvalue">GSList</span> *            st_theme_get_custom_stylesheets     (<em class="parameter"><code><a class="link" href="st-st-theme-node.html#StTheme"><span class="type">StTheme</span></a> *theme</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>theme</code></em> :</span></p></td>
<td>an <a class="link" href="st-st-theme-node.html#StTheme"><span class="type">StTheme</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the list of stylesheet filenames
that were loaded with <a class="link" href="st-st-theme.html#st-theme-load-stylesheet" title="st_theme_load_stylesheet ()"><code class="function">st_theme_load_stylesheet()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="st-theme-load-stylesheet"></a><h3>st_theme_load_stylesheet ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            st_theme_load_stylesheet            (<em class="parameter"><code><a class="link" href="st-st-theme-node.html#StTheme"><span class="type">StTheme</span></a> *theme</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *path</code></em>,
                                                         <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="st-theme-new"></a><h3>st_theme_new ()</h3>
<pre class="programlisting"><a class="link" href="st-st-theme-node.html#StTheme"><span class="returnvalue">StTheme</span></a> *           st_theme_new                        (<em class="parameter"><code>const <span class="type">char</span> *application_stylesheet</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *theme_stylesheet</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *default_stylesheet</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>application_stylesheet</code></em> :</span></p></td>
<td>The highest priority stylesheet, representing application-specific
styling; this is associated with the CSS "author" stylesheet, may be <a href="/home/otaylor/gnome/install/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>theme_stylesheet</code></em> :</span></p></td>
<td>The second priority stylesheet, representing theme-specific styling ;
this is associated with the CSS "user" stylesheet, may be <a href="/home/otaylor/gnome/install/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>default_stylesheet</code></em> :</span></p></td>
<td>The lowest priority stylesheet, representing global default styling;
this is associated with the CSS "user agent" stylesheet, may be <a href="/home/otaylor/gnome/install/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the newly created theme object</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="st-theme-unload-stylesheet"></a><h3>st_theme_unload_stylesheet ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                st_theme_unload_stylesheet          (<em class="parameter"><code><a class="link" href="st-st-theme-node.html#StTheme"><span class="type">StTheme</span></a> *theme</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *path</code></em>);</pre>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18.1</div>
</body>
</html>